//
//  PaintingCollectionViewCell.m
//  TestDemo
//
//  Created by zhangwenqiao on 2018/12/13.
//  Copyright © 2018年 zhangwenqiao. All rights reserved.
//

#import "PaintingCollectionViewCell.h"

@implementation PaintingCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.layer.borderWidth = 0.5;
    self.layer.borderColor = [[UIColor blackColor] colorWithAlphaComponent:0.4].CGColor;
    self.layer.cornerRadius = 2;
    self.layer.masksToBounds = YES;
    
//    CALayer *layer = [self.contentView layer];
//    layer.shadowOffset = CGSizeMake(0, 0); //(0,0)时是四周都有阴影
//    layer.shadowRadius = 5.0;
//    layer.shadowColor = [UIColor blackColor].CGColor;
//    layer.shadowOpacity = 0.5;
    
    
    
    //偏移距离
//    self.layer.shadowOffset =  CGSizeMake(4, 4);
//    //透明度
//    self.layer.shadowOpacity = 0.8;
//    //阴影颜色
//    self.layer.shadowColor =  [[UIColor lightGrayColor] colorWithAlphaComponent:0.4].CGColor;
//    //阴影半径
//    self.layer.shadowRadius = 4;
//    UIBezierPath * path = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(-4,-4, self.frame.size.width + 8, self.frame.size.height + 8) cornerRadius:1.0];
//    //阴影路径
//    self.layer.shadowPath = path.CGPath;
}

@end
